import { authorizeRequest } from '../util/http'

const ROUTE = '/v1/likes'

export interface ToggleLikeRequest {
    pictureId:number
}
export const apiPutLike = async (params: ToggleLikeRequest) => {
    return (await authorizeRequest.put<object>(ROUTE, params,{params})).data
}